Skip to content

,-0,System.Collections.Generic.IComparer{-0})} ,-0)}

ScheduledItem(IScheduler, TValue, Func, TAbsolute, IComparer) constructor

Defined in

Type: ScheduledItem Namespace: System.Reactive.Concurrency Assembly: System.Reactive.dll

Applies to

netstandard2.0

Overloads

  • 1. public ScheduledItem(IScheduler scheduler, TValue state, Func<IScheduler, TValue, IDisposable> action, TAbsolute dueTime, IComparer<TAbsolute> comparer)
  • 2. public ScheduledItem(IScheduler scheduler, TValue state, Func<IScheduler, TValue, IDisposable> action, TAbsolute dueTime)

1. Overload

public ScheduledItem(IScheduler scheduler, TValue state, Func<IScheduler, TValue, IDisposable> action, TAbsolute dueTime, IComparer<TAbsolute> comparer)

Summary: Creates a materialized work item.

Parameters

NameTypeDescription
scheduler[IScheduler](#Recursive scheduler to invoke the scheduled action with.
stateTValueState to pass to the scheduled action.
actionFuncScheduled action.
dueTimeTAbsoluteTime at which to run the scheduled action.
comparerIComparerComparer used to compare work items based on their scheduled time.

Exceptions

TypeCondition
System.ArgumentNullExceptionscheduler or action or comparer is null.

2. Overload

public ScheduledItem(IScheduler scheduler, TValue state, Func<IScheduler, TValue, IDisposable> action, TAbsolute dueTime)

Summary: Creates a materialized work item.

Parameters

NameTypeDescription
scheduler[IScheduler](#Recursive scheduler to invoke the scheduled action with.
stateTValueState to pass to the scheduled action.
actionFuncScheduled action.
dueTimeTAbsoluteTime at which to run the scheduled action.

Exceptions

TypeCondition
System.ArgumentNullExceptionscheduler or action is null.